#ifndef GAME_COMMON_INFO_H
#define GAME_COMMON_INFO_H

#include <vector>
using namespace std;

class Box;
class Level;

class GameCommonInfo
{
private:
	GameCommonInfo();
	static GameCommonInfo* instance;

	int curBoxIndex;
	Box* curBox;

	int curLevelIndex;
	Level* curLevel;

	vector<Box*> boxes;
public:
	static GameCommonInfo* GetInstance();
	vector<Box*>* GetBoxes(){return &boxes;}

	void NextLevel();
	void NextBox();

	void SetCurLevel(int index);
	void SetCurBox(int index);
	
	Box* GetCurBox(){return curBox;}
	Level* GetCurLevel(){return curLevel;}
	void DestroyInstance();
	~GameCommonInfo();
};

#endif